<?php


namespace app\api\model;


use think\Model;

class GoodsCategory extends Model
{
    /**
     * 获取全部商品分类
     *
     * @return bool|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */

    public function getCategory()
    {
        $where = [];
        $cats = $this->where($where)->select();
        return $cats;
    }
}